﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web;

namespace PuttySessionTool
{
    class CUtility
    {
        public static string SessionKeyToDisplayName(string sessionKey)
        {
            return HttpUtility.UrlDecode(sessionKey, System.Text.Encoding.Default);
        }

        public static string DisplayNameToSessionKey(string displayName)
        {
            return HttpUtility.UrlEncode(displayName, System.Text.Encoding.Default);
        }
    }
}
